package ace.module.stock.sdk.core.feign.impl;

import ace.cmp.openfeign.security.oauth2.core.config.FeignInternalServerOauth2SecurityConfig;
import ace.module.stock.api.ext.WmsStockAndSalesQuantityApi;
import ace.module.stock.sdk.core.constant.SdkConstant;
import org.springframework.cloud.openfeign.FeignClient;

/**
 * 库存与销量 rpc feign.
 *
 * @author Caspar
 */
@FeignClient(
    name = "${spring.cloud.openfeign.client.config.wmsStockAndSalesQuantityFeign.name:" + SdkConstant.FEIGN_SERVICE_NAME + "}",
    contextId = "wmsStockAndSalesQuantityFeign",
    path = WmsStockAndSalesQuantityFeign.PATH,
    configuration = FeignInternalServerOauth2SecurityConfig.class
)
public interface WmsStockAndSalesQuantityFeign extends WmsStockAndSalesQuantityApi {

  String PATH = "${spring.cloud.openfeign.client.config.wmsStockAndSalesQuantityFeign.path:/stock/wms-stock-and-sales-quantity/rpc}";
}